var passwordEncrypt = function passwordEncrypt(password) {
    if (typeof password === 'undefined') return undefined;
    if (!password) return '';
    return encrypt(password);
};

console.log(passwordEncrypt("123123"))